CFLAG = -std=c++17 -I../../src/third_part -I../../src/third_part/muduo/include
LFLAG = -L ../../src/third_part/muduo/lib -lmuduo_net -lmuduo_base -pthread -lprotobuf -lz -lsqlite3

all : public_client consume_client

public_client: public_client.cc ../../src/common/message.pb.cc ../../src/common/protocol.pb.cc ../../src/third_part/proto/codec.cc
	g++ -g -o $@ $^ $(CFLAG) $(LFLAG)

consume_client: consume_client.cc ../../src/common/message.pb.cc ../../src/common/protocol.pb.cc ../../src/third_part/proto/codec.cc
	g++ -g -o $@ $^ $(CFLAG) $(LFLAG)

.PHONY : clean
clean :
	rm -rf public_client consume_client